package com.shyroke.daydayzhuanapi.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "project_part")
public class ProjectPartEntity extends BaseEntity implements Serializable{
    private String content;

    private Boolean used;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "type_id",referencedColumnName = "id")
    private ProjectPartTypeEntity type;

    private Date useTime;
}